package lab01;

/**
 * Created by Administrator on 2017/10/9.
 */
public class Test13 {
    public static void main(String[] args) {
        int sum;
        int m;
        int n;
        int j;
        for (int N=100;N<1000;N++){
             m=N%10;
             n=N/10%10;
             j=N/100;
            if (m*m*m+n*n*n+j*j*j==N) {
                System.out.println(N + "");
            }
            }
        }
    }